package logic.bean;

import com.ciko.code.annotations.Column;
import java.io.Serializable;


/**
 * 购物车
 * @author 刘宾  
 * @date 2015年4月7日 下午7:58:07
 */
public class ShoppingCart
        implements
        Serializable
{
    private static final long serialVersionUID = -8619218666922878538L;
    /** 购物车数据 */
    public static final int ORDERSTATUS_NORMAL = 0;
    /** 订单提交失败数据 */
    public static final int ORDERSTATUS_FAIL   = 1;
    
    @Column(primaryKey = true)
    public int id;
    public String account;
    /** 商品编号 */
    public long goodsId;
    /** 商品类型 0=常规商品 1=代金券*/
    public int goodsType;
    /** 企业id */
    public int epId;
    /** 商品标题 */
    public String title;
    /** 卖点 */
    public String sellPoint;
    /** 简介 */
    public String intro;
    /** 图片地址 */
    public String picUrl;
    /** 数量 */
    public int count;
    /** 金额，单位：分 */
    public int salePrice;
    /** 是否删除，y:是，n:否 */
    public String isDelete;
    public long skuId;
    /** sku属性集合，json格式 */
    public String skuPropDetail;
    public long createtime;
    /** 商品详情url */
    public String goodsDetailUrl;
    /** 商品基本信息的url */
    public String baseUrl;
    /** 活动id */
    public long   activityId;
    /** 优惠价格 */
    public int    freeMoney;
    
    /** 1：订单提交失败，0：购物车数据 */
    public int    ordersStatus;
    /** 订单提交失败错误码 */
    public String errorCode;
    /** 订单提交失败错误信息 */
    public String errorMsg;
    
    
	public ShoppingCart() { }
	public ShoppingCart(String account, long goodsId, int epId, String title, String sellPoint, String intro, String picUrl, int count, int salePrice, String isDelete, long skuId, String skuPropDetail, long createtime) {
	    this.account = account;
	    this.goodsId = goodsId;
	    this.epId = epId;
	    this.title = title;
	    this.sellPoint = sellPoint;
	    this.intro = intro;
	    this.picUrl = picUrl;
	    this.count = count;
	    this.salePrice = salePrice;
	    this.isDelete = isDelete;
	    this.skuId = skuId;
	    this.skuPropDetail = skuPropDetail;
	    this.createtime = createtime;
    }
	public ShoppingCart(int id, String account, long goodsId, int epId, String title, String sellPoint, String intro, String picUrl, int count, int salePrice, String isDelete, long skuId, String skuPropDetail, long createtime) {
		this.id = id;
		this.account = account;
		this.goodsId = goodsId;
		this.epId = epId;
		this.title = title;
		this.sellPoint = sellPoint;
		this.intro = intro;
		this.picUrl = picUrl;
		this.count = count;
		this.salePrice = salePrice;
		this.isDelete = isDelete;
		this.skuId = skuId;
		this.skuPropDetail = skuPropDetail;
		this.createtime = createtime;
	}
    
    
}
